package com.ruoyi.tranShort.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.tranShort.domain.ShortSchedulingTask;
import org.apache.ibatis.annotations.Param;

/**
 * 排班任务Mapper接口
 * 
 * @author ruoyi
 * @date 2021-08-17
 */
public interface ShortSchedulingTaskMapper 
{
    /**
     * 查询排班任务
     * 
     * @param id 排班任务主键
     * @return 排班任务
     */
    public ShortSchedulingTask selectShortSchedulingTaskById(String id);

    /**
     * 查询排班任务列表
     * 
     * @param shortSchedulingTask 排班任务
     * @return 排班任务集合
     */
    public List<ShortSchedulingTask> selectShortSchedulingTaskList(ShortSchedulingTask shortSchedulingTask);

    /**
     * 新增排班任务
     * 
     * @param shortSchedulingTask 排班任务
     * @return 结果
     */
    public int insertShortSchedulingTask(ShortSchedulingTask shortSchedulingTask);

    /**
     * 修改排班任务
     * 
     * @param shortSchedulingTask 排班任务
     * @return 结果
     */
    public int updateShortSchedulingTask(ShortSchedulingTask shortSchedulingTask);

    /**
     * 删除排班任务
     * 
     * @param id 排班任务主键
     * @return 结果
     */
    public int deleteShortSchedulingTaskById(String id);

    /**
     * 批量删除排班任务
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShortSchedulingTaskByIds(String[] ids);

    /**
     * 查询指定时间前面的未执行任务
     * @param shortSchedulingTask
     * @return
     */
    List<ShortSchedulingTask> selectScheduingTaskTime(ShortSchedulingTask shortSchedulingTask);

    /**
     * 根据SchedulingId删除
     * @param ids
     * @return
     */
    int deleteShortSchedulingTaskBySchedulingId(Long[] ids);

    /**
     * 根据schedulingId和taskName删除
     * @param schedulingId
     * @param taskName
     * @return
     */
    int deleteShortSchedulingTaskBySchedulingIdAndTaskName(@Param("schedulingId") Long schedulingId, @Param("taskName") String taskName);

    /**
     * 根据schedulingId和taskName查询
     * @param schedulingId
     * @param taskName
     * @return
     */
    ShortSchedulingTask selectSchedulingTaskByTaskNameAndSchedulingId(@Param("schedulingId") Long schedulingId, @Param("taskName") String taskName);
}
